#include "matrixaiplugin.h"
#include "evaluator.h"
#include "searchengine.h"

MatrixAIPlugin::MatrixAIPlugin() : plugin_name(L"Matrix AI")
{

}

std::wstring MatrixAIPlugin::GetAIPluginName()
{
    return plugin_name;
}

void MatrixAIPlugin::SetColor( long color )
{
    chess_color = color;
}

void MatrixAIPlugin::SetSearchDepth( long depth )
{
    search_depth = depth;
}

Move MatrixAIPlugin::GenerateMove( Byte matrix[15][15], Move last_move )
{
    SearchEngine engine;
    return engine.SearchAGoodMove(matrix, chess_color);
}